#include "ThreadPool.hpp"
#include"task.hpp"
#include<unistd.h>
int main()
{
ThreadPool<5,Task> pool;
pool.Init();
pool.Start();
sleep(3);
while(1)
{ 
cout<<"输入x";
int x;
cin>>x;
cout<<"输入y";
int y;
cin>>y;
cout<<"输入运算方式";
char way;
cin>>way;
Task t(x,y,way);
pool.push(t);

}





  return 0;
}
